toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final imageId = this.imageId;
  final imageName = this.imageName;
  final launchedAt = this.launchedAt;
  final name = this.name;
  return {
    if (imageId != null) 'ImageId': imageId,
    if (imageName != null) 'ImageName': imageName,
    if (launchedAt != null) 'LaunchedAt': launchedAt,
    if (name != null) 'Name': name,
  };
}