toJson method Null safety

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (config != null) 'config': config!,
      if (createTime != null) 'createTime': createTime!,
      if (labels != null) 'labels': labels!,
      if (name != null) 'name': name!,
      if (state != null) 'state': state!,
      if (updateTime != null) 'updateTime': updateTime!,
      if (uuid != null) 'uuid': uuid!,
    };