ShareError.fromJson constructor

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

Implementation

factory ShareError.fromJson(Map<String, dynamic> json) {
  return ShareError(
    accounts: (json['Accounts'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    error: json['Error'] as String?,
    message: json['Message'] as String?,
  );
}