DeepSerializedValue.fromJson constructor

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

Implementation

factory DeepSerializedValue.fromJson(Map<String, dynamic> json) {
  return DeepSerializedValue(
    type: DeepSerializedValueType.fromJson(json['type'] as String),
    value: json.containsKey('value') ? json['value'] as dynamic : null,
    objectId:
        json.containsKey('objectId') ? json['objectId'] as String : null,
    weakLocalObjectReference: json.containsKey('weakLocalObjectReference')
        ? json['weakLocalObjectReference'] as int
        : null,
  );
}