SdkResponse.fromJson constructor

SdkResponse.fromJson(
  1. Map<String, dynamic> json
)

Creates an SdkResponse from a JSON map.

Implementation

factory SdkResponse.fromJson(Map<String, dynamic> json) => SdkResponseImpl(
      result: json['result'] as bool? ?? false,
      errorMessage: json['errorMessage'] as String? ?? '',
    );