RegexPatternSet.fromJson constructor

RegexPatternSet.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory RegexPatternSet.fromJson(Map<String, dynamic> json) {
  return RegexPatternSet(
    arn: json['ARN'] as String?,
    description: json['Description'] as String?,
    id: json['Id'] as String?,
    name: json['Name'] as String?,
    regularExpressionList: (json['RegularExpressionList'] as List?)
        ?.whereNotNull()
        .map((e) => Regex.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}