UpdateContextRequest.fromJson constructor

UpdateContextRequest.fromJson(
  1. Object? j
)

Implementation

factory UpdateContextRequest.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return UpdateContextRequest(
    context: switch (json['context']) {
      null => null,
      Object $1 => Context.fromJson($1),
    },
    updateMask: switch (json['updateMask']) {
      null => null,
      Object $1 => protobuf.FieldMask.fromJson($1),
    },
    allowMissing: switch (json['allowMissing']) {
      null => false,
      Object $1 => decodeBool($1),
    },
  );
}