toJson method

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

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'background',
    if (extra != null) '@extra': extra,
    'id': id,
    'is_default': is_default,
    'is_dark': is_dark,
    'name': name,
    'document': document,
    'type': type
  };
}