ValueItem<T>.fromJson constructor

ValueItem<T>.fromJson(
  1. String source,
  2. dynamic customValueFromMap(
    1. Map<String, dynamic>
    )?
)

fromJson method for ValueItem

customValueFromMap is an optional fromMap function to use if value is a custom class.

Implementation

factory ValueItem.fromJson(String source,
        dynamic Function(Map<String, dynamic>)? customValueFromMap) =>
    ValueItem<T>._fromMap(json.decode(source), customValueFromMap);