toJson method Null safety

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (createTime != null) 'createTime': createTime!,
      if (expireTime != null) 'expireTime': expireTime!,
      if (id != null) 'id': id!,
      if (name != null) 'name': name!,
      if (reportTypeId != null) 'reportTypeId': reportTypeId!,
      if (systemManaged != null) 'systemManaged': systemManaged!,
    };