StoneResponse.fromMap constructor

StoneResponse.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory StoneResponse.fromMap(Map<String, dynamic> map) {
  return StoneResponse(
    method: map['method'] != null ? map['method'] as String : null,
    errorMessage:
        map['errorMessage'] != null ? map['errorMessage'] as String : null,
    message: map['message'] != null ? map['message'] as String : null,
    result: map['result'] != null ? map['result'] as int : null,
  );
}