GeneralResponse.fromJson constructor Null safety

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

Implementation

factory GeneralResponse.fromJson(Map<String, dynamic> json) =>
    GeneralResponse(
      statusCode: json['code'] as int,
      message: json['description'] as String,
    );