SubnetworkParams.fromJson constructor

SubnetworkParams.fromJson(
  1. Object? j
)

Implementation

factory SubnetworkParams.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return SubnetworkParams(
    resourceManagerTags: switch (json['resourceManagerTags']) {
      null => {},
      Map<String, Object?> $1 => {
        for (final e in $1.entries)
          decodeString(e.key): decodeString(e.value),
      },
      _ => throw const FormatException(
        '"resourceManagerTags" is not an object',
      ),
    },
  );
}