RegexMatchSet.fromJson constructor

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

Implementation

factory RegexMatchSet.fromJson(Map<String, dynamic> json) {
  return RegexMatchSet(
    name: json['Name'] as String?,
    regexMatchSetId: json['RegexMatchSetId'] as String?,
    regexMatchTuples: (json['RegexMatchTuples'] as List?)
        ?.whereNotNull()
        .map((e) => RegexMatchTuple.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}