toJson method

  1. @override
Map<String, Object?> toJson()

Implementation

@override
Map<String, Object?> toJson() => {
      "content_type": encodeValue(contentType),
      "created_at": encodeValue(createdAt),
      if (filename != null) "filename": encodeValue(filename),
      "id": encodeValue(id),
      if (name != null) "name": encodeValue(name),
      "size": encodeValue(size),
      "status": encodeValue(status),
    };