fromJSON method

  1. @override
RegExp? fromJSON(
  1. dynamic jsonValue,
  2. DeserializationContext context
)
override

Implementation

@override
RegExp? fromJSON(dynamic jsonValue, DeserializationContext context) =>
    jsonValue is String ? RegExp(jsonValue) : jsonValue;