UpsertExamplesResponse_UpsertResult.fromJson constructor

UpsertExamplesResponse_UpsertResult.fromJson(
  1. Object? j
)

Implementation

factory UpsertExamplesResponse_UpsertResult.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return UpsertExamplesResponse_UpsertResult(
    example: switch (json['example']) {
      null => null,
      Object $1 => Example.fromJson($1),
    },
    status: switch (json['status']) {
      null => null,
      Object $1 => Status.fromJson($1),
    },
  );
}