# ResultWrapper<T>.fromJson constructor

ResultWrapper<T>.fromJson(

1. Map<String, dynamic> json, {
2. T fromJsonT(
   1. Map<String, dynamic>
   )?,

})

## Implementation

    factory ResultWrapper.fromJson(
      Map<String, dynamic> json, {
      T Function(Map<String, dynamic>)? fromJsonT,
    }) =>
        ResultWrapper(
          status: OperationStatusExtension.fromString(json['status']) ??
              (throw ArgumentError('Invalid status value: ${json['status']}')),
          value: json['value'] != null && fromJsonT != null
              ? fromJsonT(jsonDecode(json['value']))
              : null,
          errorMessage: json['errorMessage'] as String?,
        );