ServiceAttachmentConsumerProjectLimit.fromJson constructor

ServiceAttachmentConsumerProjectLimit.fromJson(
  1. Object? j
)

Implementation

factory ServiceAttachmentConsumerProjectLimit.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return ServiceAttachmentConsumerProjectLimit(
    connectionLimit: switch (json['connectionLimit']) {
      null => null,
      Object $1 => decodeInt($1),
    },
    endpointUrl: switch (json['endpointUrl']) {
      null => null,
      Object $1 => decodeString($1),
    },
    networkUrl: switch (json['networkUrl']) {
      null => null,
      Object $1 => decodeString($1),
    },
    projectIdOrNum: switch (json['projectIdOrNum']) {
      null => null,
      Object $1 => decodeString($1),
    },
  );
}