RepoStat.fromJson constructor

RepoStat.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory RepoStat.fromJson(Map<String, Object?> json) => RepoStat(
  path: json['path'] as String,
  exists: json['exists'] == true,
  isDir: json['isDir'] == true,
  size: (json['size'] as num).toInt(),
  lineCount: (json['lineCount'] as num).toInt(),
  modified: json['modified'] as String?,
);