toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() => {
  'key': key,
  'type': type,
  'id': id,
  'presence': presence.wireName,
  'canonical': canonical,
  'patch': patch,
  'merged': merged,
  'dirty': dirty,
  'dirtyReasons': dirtyReasons
      .map((reason) => reason.toJson())
      .toList(growable: false),
  'entityState': entityState.toJson(),
  'sync': sync.toJson(),
  'revision': revision,
  'viewIds': viewIds,
};