GetPolicyOptions.fromJson constructor

GetPolicyOptions.fromJson(
  1. Object? j
)

Implementation

factory GetPolicyOptions.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return GetPolicyOptions(
    requestedPolicyVersion: switch (json['requestedPolicyVersion']) {
      null => 0,
      Object $1 => decodeInt($1),
    },
  );
}