fromJSON method

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

Implementation

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