fromJsonStringGeneric<T> static method

T? fromJsonStringGeneric<T>(
  1. String? json,
  2. T? fromJsonMap(
    1. Map<String, dynamic>? json
    )
)

Implementation

static T? fromJsonStringGeneric<T>(
        String? json, T? Function(Map<String, dynamic>? json) fromJsonMap) =>
    TextUtils.isNotEmpty(json) ? fromJsonMap.call(jsonDecode(json!)) : null;