DehydratedMutation.fromJson constructor

DehydratedMutation.fromJson(
  1. Map<String, Object?> json
)

Decodes a mutation from JSON-compatible data.

Implementation

factory DehydratedMutation.fromJson(Map<String, Object?> json) =>
    DehydratedMutation(
      key: QueryKey<Object?>.fromJson(json['key']),
      state: Map<String, Object?>.from(json['state']! as Map),
      scope: json['scope'] as String?,
      meta: json['meta'] == null
          ? const <String, Object?>{}
          : Map<String, Object?>.from(json['meta']! as Map),
    );