Option<T>.fromJson constructor
Option<T>.fromJson (
- dynamic json,
- T fromJsonT(
- dynamic json
Adds support for the json_serializable
package.
Implementation
factory Option.fromJson(
dynamic json,
T Function(dynamic json) fromJsonT,
) =>
json != null ? some(fromJsonT(json)) : kNone;