EntryPreview.fromJson constructor

EntryPreview.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory EntryPreview.fromJson(Map<String, dynamic> json) {
  return EntryPreview(
    key: json.containsKey('key')
        ? ObjectPreview.fromJson(json['key'] as Map<String, dynamic>)
        : null,
    value: ObjectPreview.fromJson(json['value'] as Map<String, dynamic>),
  );
}