toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (createTime != null)
        'createTime': createTime!.toUtc().toIso8601String(),
      if (downloadUrl != null) 'downloadUrl': downloadUrl!,
      if (name != null) 'name': name!,
      if (type != null) 'type': type!,
    };