UpdateDocumentRequest.fromJson constructor

UpdateDocumentRequest.fromJson(
  1. Object? j
)

Implementation

factory UpdateDocumentRequest.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return UpdateDocumentRequest(
    document: switch (json['document']) {
      null => null,
      Object $1 => Document.fromJson($1),
    },
    updateMask: switch (json['updateMask']) {
      null => null,
      Object $1 => FieldMask.fromJson($1),
    },
  );
}