toJson method

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

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'file',
    if (extra != null) '@extra': extra,
    'id': id,
    'size': size,
    'expected_size': expected_size,
    'local': local,
    'remote': remote
  };
}