UpdateOperation.fromJson constructor

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

Implementation

factory UpdateOperation.fromJson(Map<String, dynamic> json) {
  final path = json['path'] as Path;
  final oldAttributes = json['oldAttributes'] as Attributes;
  final attributes = json['attributes'] as Attributes;
  return UpdateOperation(
    path,
    attributes,
    oldAttributes,
  );
}