TestRoleResponse.fromJson constructor

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

Implementation

factory TestRoleResponse.fromJson(Map<String, dynamic> json) {
  return TestRoleResponse(
    messages: (json['Messages'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    success: json['Success'] as String?,
  );
}