nullsafety

This commit is contained in:
v7lin
2021-03-19 13:59:35 +08:00
parent 8489b41e34
commit 684a2ed623
33 changed files with 961 additions and 1097 deletions

View File

@ -2,7 +2,7 @@ import 'package:json_annotation/json_annotation.dart';
abstract class TencentApiResp {
const TencentApiResp({
this.ret,
required this.ret,
this.msg,
});
@ -14,7 +14,7 @@ abstract class TencentApiResp {
defaultValue: RET_SUCCESS,
)
final int ret;
final String msg;
final String? msg;
bool get isSuccessful => ret == RET_SUCCESS;
}