toJson method

Map<String, String> toJson ()

Implementation

Map<String, String> toJson() => {
      'type': type,
      'code': code,
      'message': message,
    };