InsertGlobalAddressRequest.fromJson constructor

InsertGlobalAddressRequest.fromJson(
  1. Object? j
)

Implementation

factory InsertGlobalAddressRequest.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return InsertGlobalAddressRequest(
    addressResource: switch (json['addressResource']) {
      null => null,
      Object $1 => Address.fromJson($1),
    },
    project: switch (json['project']) {
      null => '',
      Object $1 => decodeString($1),
    },
    requestId: switch (json['requestId']) {
      null => null,
      Object $1 => decodeString($1),
    },
  );
}