toJson method Null safety

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (contents != null) 'contents': contents!,
      if (createTime != null) 'createTime': createTime!,
      if (hash != null) 'hash': hash!,
      if (mimeType != null) 'mimeType': mimeType!,
      if (name != null) 'name': name!,
      if (sizeBytes != null) 'sizeBytes': sizeBytes!,
      if (updateTime != null) 'updateTime': updateTime!,
    };